﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Transiteers.Models
{
    public partial class TransiteersDB
    {

        public PayPeriod GetPeriod(int periodID)
        {
            return BaseDB.Periods.FirstOrDefault(p => p.ID == periodID);
        }

        public void Add(PayPeriod period)
        {
            BaseDB.Periods.Add(period);
            BaseDB.SaveChanges();
        }

        public void Remove(PayPeriod period)
        {
            BaseDB.Periods.Remove(period);
        }

    }
}